#include "modelslist.h"
#include <iostream>

ModelsList::ModelsList(QWidget *parent ): QListWidget(parent)
{
    std::cout<<"I'm aliiiive\n";
}
ModelsList::~ModelsList()
{

}

void ModelsList::changeSelectedElem(int row)
{
    emit selectedModelChanged(row);
}


void ModelsList::addModelFile(QString filename)
{
    this->addItem(filename);
}

void ModelsList::removeCurrentFile()
{
    emit fileRemoved(currentRow());
    this->takeItem(currentRow());
    emit selectedModelChanged(currentRow());
}

void ModelsList::moveCurrentUp()
{
    
}

void ModelsList::moveCurrentDown()
{

}

